﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<NerdDinnerReloaded.Models.Dinner>>" %>

<asp:Content ID="head" ContentPlaceHolderID="head" runat="server">
  <title>List of Dinners</title>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
  <h1>
    Upcoming Dinners</h1>
  <ul>
    <% foreach (var d in Model)
       { %>
    <li>
      <%=d.Title %>
      (<%=d.EventDate.ToShortDateString() %>) </li>
    <% } %>
  </ul>
  <p>
    <%=Html.ActionLink("Create New Dinner", "Create") %>
  </p>
</asp:Content>
